import fly from '@/utils/fly'

var cityApi = {

  getFirstCitys: function(params) {
    return fly.post('/backadmin/code/citys/findFirstCitys', params)
  },

  /**
   * 根据父级code，查询子级地区的集合
   */
  findCitysByParentCode: function(params) {
    return fly.post('/backadmin/code/citys/findCitysByParentCode', params)
  },

  /**
   * 
   * 根据父级code，查询所有子级city，包含到第4级
   */
  findAllSubCitysByParentCode(param) {
    return fly.post('/backadmin/code/citys/findAllSubCitysByParentCode', param)
  }

}

export { cityApi }
